#include "Sever.hpp"
#include "Comm.hpp"

int main()
{
    Sever sever;
    sever.OpenForRead();
    std::string message;
    while (true)
    {
        
        if (sever.Recpipe(&message) > 0)
        {
            std::cout << message << std::endl;
        }
        else
        {
            break;
        }
        
    }

    std::cout<<"quit"<<std::endl;
    sever.ClosePipe();

    return 0;
}